/*jslint vars: true, forin: true, sloppy: true */
/*global probe, angular */
probe.controller('Login', function ($scope, $element, ocDialog, ocAPI) {
	$scope.token = '';

	$scope.enter = function () {
		ocAPI.use('login').by($scope.token).then(function () {
			ocDialog.getNewDI('main').then(function (DI) {
				DI.openDialogFrom();
			});
		});
	};
});
